package com.smartcommunity.dao.building;

import com.smartcommunity.entity.building.BuildingEntity;
import com.smartcommunity.entity.building.UnitEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface UnitMapper {

    void add(UnitEntity unitEntity);

    void addBatch(List<UnitEntity> unitEntity);

    List<UnitEntity> queryBuildingUnits(BuildingEntity building);
    List<UnitEntity> queryBuildingUnit(@Param("villageCode") String villageCode, @Param("buildingNo") String buildingNo);

    void editBatch(List<UnitEntity> unitEntities);

    void deleteUnitByBuilding(@Param("villageCode") String villageCode, @Param("buildingNo") String buildingNo);

//    List<Building> list(BuildingListReq buildingListReq);
//
//    BuildingEntity exits(BuildingExitsReq buildingExitsReq);
//
//    void edit(BuildingEntity buildingEntity);
//
//    void delete(Long buildingId);
//
//    BuildingEntity getBuilding(Long buildingId);
}